#!/bin/bash
#update source code & cal all project
#
#cirrus-source  codingnet_auth.sh  frisian-source  picasso-source  roraima-source  saltee-source  shasta-source  source_update.sh  walrus-source
#
coding_path='/home/source/coding_source'
local_path='/home/source/local_source'
#
echo "The script begin run time : `date`" >> $log_path
for each_pro in `ls ${coding_path}`;do
    echo $each_pro
    cd ${coding_path}/${each_pro}
    expect /home/script/codingnet_auth.sh
    bash /home/script/git_cal.sh
done

for each_pro in `ls ${local_path}`;do
    echo $each_pro
    cd ${local_path}/${each_pro}
    git pull
    bash /home/script/git_cal.sh
done
echo "The script end run time : `date`" >> $log_path
